<template>
  <button>
    <slot/>
    <span v-if="mytitle">{{ mytitle }}</span>
  </button>
</template>

<script setup>
import { useAttrs, defineProps } from 'vue';
defineProps({
  mytitle: {
    type: String,
    default: ''
  }
})
const attrs = useAttrs();
console.log(attrs);
</script>

<style lang="scss" scoped>

</style>
